Remove old ADCSTemplate.zip references and add new templates - #340
Remove old ADCSTemplate.zip references and add new templates#340Ne0nd0g wants to merge 6 commits into
Conversation
|
Hey @Ne0nd0g — thanks for catching this. The fix works, but wanted to suggest an alternative that avoids committing binary zips. The unzipped - name: Copy ADCSTemplate module to remote
ansible.windows.win_copy:
src: files/ADCSTemplate/
dest: "C:\\Program Files\\WindowsPowerShell\\Modules\\ADCSTemplate\\"I compared the zip contents against the tracked directory — they're identical (same 10 files). PowerShell modules are just directories of Benefits:
Do you see any issues with that approach? If not, happy to update the PR branch — or feel free to adjust it yourself. |
|
Yeah, I agree with your approach, I'll try to get an update to my PR pushed soon |
Replace the copy-zip / Expand-Archive / cleanup sequence in the adcs_templates and vulns_adcs_templates roles with a single win_copy of the already-tracked files/ADCSTemplate/ directory, and drop the committed ADCSTemplate.zip blobs. A PowerShell module is just a directory of .psm1/.psd1 files, so the copy produces the same layout Expand-Archive did. The zip contents were byte-identical to the tracked directory in both roles. Also removes the now-dead zip plumbing this makes redundant: - PrepareADCSZips (provision preflight was its only caller) - the `zip` doctor check and its mention in `doctor --help` - the Ludus docs zip prerequisite and its troubleshooting section Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
@Ne0nd0g — I went ahead and pushed the change we discussed to this branch ( The agreed change Both roles ( - name: Copy ADCSTemplate module to remote
ansible.windows.win_copy:
src: files/ADCSTemplate/
dest: "C:\\Program Files\\WindowsPowerShell\\Modules\\ADCSTemplate\\"Both A little more than we agreed on — flagging explicitly since it's your PR Dropping the zips made some existing plumbing dead, so I removed it in the same commit:
Say the word if you'd rather keep this PR to just the role change and split the cleanup out. Verification
|
Summary
Adds the required
ADCSTemplate.zipfiles to the two ADCS-related Ansible roles and removes their entries from.gitignoreso the templates are included in the repository and available during provisioning.Type of change
Area
cli/)ansible/)infra/,modules/)packer/,warpgate-templates/)ad/)extensions/)tools/)docs/,README.md, etc.).github/)Related issues
No related issue.
How was this tested?
Verified that the updated
ADCSTemplate.zipfiles are present at the paths expected by both Ansible roles:ansible/roles/adcs_templates/files/ADCSTemplate.zipansible/roles/vulns_adcs_templates/files/ADCSTemplate.zipProvider(s) tested: Not tested
Lab(s) tested: Not tested
Operator OS: macOS
Screenshots / logs (optional)
Not applicable.
Checklist
cli/, Ansible syntax checks, etc.).docs/, role README, command help text) where relevant.ad/,ansible/, andextensions/are expected and fine.)--helptext and any docs that reference it.